<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>浏览器的弹出层</title>
</head>
<body>
    <script>
        //警告框
        window.alert('欢迎光临')

        //询问框
        var res=window.confirm('你爱我吗？')
        //输出返回值
        console.log(res)

        //输入框
        var res1= window.prompt('输入您的银行卡密码')
         //输出返回值
         console.log(res1)
    </script>
</body>
</html>